<?php
namespace app\api\model;

use think\Model;
use think\Db;

class VideoModel extends Model
{
    function videodetail($videoid) {
        $video =  db('video')->where('videoid', $videoid)->find();
        return ['videodetail'=>$video];
    }
    function videolist() {
        $atv =  db('activity')->select();
        return ['videolist'=>$atv];
    }
}